<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>商品分类</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="{$smarty.const.PUBLIC_PATH}css/amazeui.min.css"/>
<link rel="stylesheet" href="{$smarty.const.IMAGES_PATH}style.css"/>
<script src="{$smarty.const.PUBLIC_PATH}js/jquery.min.js"></script>
<script src="{$smarty.const.PUBLIC_PATH}js/amazeui.min.js"></script>
</head>

<body>
<div class="container">
	<!--引入头文件-->
	{include file="../header.html"}
	<script>$('.title-link').text("商品分类")</script>
    
    <div class="gray-panel" style="display: none;">
    	<div class="my-search-title-panel">
        	<div class="am-input-group">
              <input type="text" class="am-form-field am-radius">
              <span class="am-input-group-btn">
                <button class="am-btn am-radius" type="button"><span class="am-icon-search"></span></button>
              </span>
            </div>
        </div>
    </div>
    	<section data-am-widget="accordion" class="am-accordion am-accordion-gapped"
            data-am-accordion='{ "multiple": true}'>
            <!--显示一级分类-->
            {foreach $pcat as $k=>$v}
              <dl class="am-accordion-item">
                <dt class="am-accordion-title">{$v.title}</dt>
                <dd class="am-accordion-bd am-collapse">
                  <!-- 规避 Collapase 处理有 padding 的折叠内容计算计算有误问题， 加一个容器 -->
                  <div class="am-accordion-content">
                  	<!--显示二级分类-->
                  	{foreach $scat as $sk=>$sv}
                        	{if $sv.parent_uid==$v.uid}
                        		<!--<dt><a href="#"  class="red2 am-cf"><b>{$sv.title}</b></a></dd>-->
			                  	<dl class="my-category-dl">
			                    	<dt><a href="{$smarty.const.__CONTROLLER__}/goodslist/cat_uid/{$sv.uid}/cat_title/{$sv.title}" class="red2 am-cf">{$sv.title}</a></dt>
			                    	<!--显示三级分类-->
			                        {foreach $sscat as $ssk=>$ssv}
                        				{if $ssv.parent_uid==$sv.uid}
			                        		<dd><a href="{$smarty.const.__CONTROLLER__}/goodslist/cat_uid/{$ssv.uid}/cat_title/{$ssv.title}">{$ssv.title}</a></dd>
			                        	{/if}
                        			{/foreach}
			                    </dl>
                        	{/if}
                        {/foreach}
                  </div>
                </dd>
              </dl>
              {/foreach}
            </section>
    <div data-am-widget="gotop" class="am-gotop am-gotop-fixed">
      <a href="#top" title="">
        <img class="am-gotop-icon-custom" src="{$smarty.const.IMAGES_PATH}goTop.gif" />
      </a>
    </div>
    <footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }">
        <hr data-am-widget="divider" style="" class="am-divider am-divider-default"/>
      <div class="am-footer-miscs ">
        <p>CopyRight©2014 AllMobilize Inc.</p>
        <p>京ICP备13033158</p>
      </div>
    </footer>
    <!--底部-->
    {include file="../footer.html"}
</div>
</body>
</html>
